✨ Expose QDMI queue length and job position - #2010
Merged
Merged
Conversation
Assisted-by: gpt-5.6-sol via Codex
Assisted-by: gpt-5.6-sol via Codex
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
# Conflicts: # CHANGELOG.md
Assisted-by: GPT-5.6 via Codex
Assisted-by: GPT-5.6 via Codex
Assisted-by: GPT-5.6 via Codex
Assisted-by: GPT-5.6 via Codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Description
Expose QDMI queue inspection generically through MQT Core:
Device::getQueueLength() -> std::optional<size_t>andDevice.queue_length() -> int | NoneJob::getQueuePosition() -> std::optional<size_t>and the PythonJob.queue_positionpropertyUnsupported device properties remain valid and return an empty optional/
None. Queue-position state or provider errors remain errors, so consumers can distinguish an unsupported measurement from a job that is no longer queued. DDSIM deliberately reports both properties as unsupported rather than inventing queue data.QDMI #485 and QDMI #486 are merged. This PR pins the validated QDMI
developrevisione80020f7containing both APIs.Relationship to #2008
This PR owns queue inspection and the low-level retrieval compatibility path needed to consume the merged QDMI ABI: optional provider-symbol loading, the exported C entry point, driver-owned job wrapping/lifetime management, and its contract tests.
Core #2008 remains the follow-up for the public FoMaC
Device::retrieveJobByIdand Pythonretrieve_job_by_idAPIs, their bindings/documentation/tests, and explicit entry points for current built-in providers where appropriate. Once this PR merges, #2008 can be rebased onto currentmainand reduced to that distinct surface, removing its now-duplicated low-level plumbing and QDMI pin update.Validation
nox -s lintChecklist
If PR contains AI-assisted content:
🤖 *AI text below* 🤖(titles are exempt).